include ../../../makefile.inc

TARGETS=socket_server

INCLUDES := $(INCLUDES) -I../protocol

BASE_LIBS := $(BASE_LIBS) -L$(DIR_PROJECT) -lsocket -L$(DIR_PROJECT) -lpthread -lthread -L../protocol/ -lprotocol

SRCS=$(wildcard *.cpp)
OBJECTS=$(patsubst %.cpp,%.o,$(SRCS)) 
OBJECTS_SERVER=$(OBJECTS)

all: $(TARGETS) 

$(TARGETS): $(OBJECTS_SERVER)
	$(CXX)  $(CXXFLAGS) -o $@  $^ $(BASE_LIBS)
	mv socket_server socket_server.s
	ln -sf socket_server.s socket_server

clean:
	$(RM) *.o 

